package com.fasteat.mall.handler;

import com.fasteat.common.entity.Result;
import com.fasteat.mall.entity.SearchCondition;
import com.fasteat.mall.service.client.ProductSearchClient;
import org.springframework.stereotype.Component;

@Component
public class ProductSearchClientFallback implements ProductSearchClient {

	@Override
	public Result searchProductWithHighlightAndPage(SearchCondition condition) {
		return Result.error("服务繁忙，查询失败");	}

	@Override
	public Result searchProductWithHighlightAndPageAndSort(SearchCondition condition, int salesVolumeType, int priceType, int timeSort) {
		return Result.error("服务繁忙，查询失败");	}

	@Override
	public Result deleteProductById(String id) {
		return Result.error("服务繁忙，删除失败");
	}
}
